#!/usr/bin/env python
# run this in the output/ subdirectory to start a simple
# cgi server

from CGIHTTPServer import CGIHTTPRequestHandler
import BaseHTTPServer

def run():
    HandlerClass = CGIHTTPRequestHandler
    ServerClass = BaseHTTPServer.HTTPServer(("", 8001), HandlerClass)
    
    print ServerClass.server_address
    print ServerClass.server_port
    print HandlerClass.cgi_directories
    
    ServerClass.serve_forever()


if __name__ == '__main__':
    print "Server running..."
    run()